import React, { Component } from 'react'
import { HashRouter as Router, Redirect, Route, NavLink, Switch } from 'react-router-dom'
import {Provider} from 'react-redux'

import Login from './Login'
import store from './store'
import Managers from './Managers'
import Modifyman from './Modifyman'
import Classroom from './Classroom'
import Activity from './Activity'
import Home from './Home'
import Student from './Student'
import Check from './Check'
import Checked from './Checked'
import Fix from './Fix'
import Fixed from './Fixed'

class App extends Component {
    render() {
        return <Provider store={store}>
            <Router>
                <Switch>
                    <Route exact path='/' component={Login} />
			        <Route exit path='/manager' component={Managers}/>
			        <Route exit path='/modifyman' component={Modifyman}/>
                    <Route exit path='/classroom' component={Classroom} />
                    <Route exit path='/activity' component={Activity} />
                    <Route  path='/home' component={Home} />
                    <Route  path='/student' component={Student}/>
                    <Route  path='/check' component={Check}/>
                    <Route  path='/checked' component={Checked}/>
                    <Route  path='/fix' component={Fix}/>
                    <Route  path='/fixed' component={Fixed}/>


                    {/* <Route render={()=><Redirect to='/home'/>}/> */}
                </Switch>
            </Router>
        </Provider>
    }
}
export default App
